package com.android.toast

import android.view.View

/**
 * @Author LuoKun
 * @Des
 */
class ViewClickWrapper : View.OnClickListener {

    private var mToast: AndroidToast<*>
    private var mListener: AndroidToast.OnClickListener<View>

    constructor(mToast: AndroidToast<*>, mListener: AndroidToast.OnClickListener<View>) {
        this.mToast = mToast
        this.mListener = mListener
    }

    override fun onClick(p0: View) {
        mListener.onClick(mToast, p0)
    }

}